﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Roller.Models;

namespace DiceRollingTests.RollerApplication
{
    [TestClass()]
    public class RollerDiceTests
    {
        [TestMethod()]
        public void ShouldSetMaximum()
        {
            var mock = new Mock<RollerDice>( 6 );
            var die = mock.Object;

            Assert.AreEqual( 6, die.MaximumValue );
        }

        [TestMethod()]
        public void ShouldSetLastRollToRollActual()
        {
            var mock = new Mock<RollerDice>( 6 );
            var die = mock.Object;
            var roll = die.Roll();

            Assert.AreEqual( roll, mock.Object.LastRoll );
        }
    }
}
